package com.xiaodu.rest.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author: dutianjie
 * @date: 2021/4/14
 * @version: v1.0.0
 * @description: 描述
 **/
@ConfigurationProperties(prefix = "httpclient.config")
@Data
public class HttpClientProperties {

    private Long connectionTimeout = 2000L; // 2s

    private Long readTimeout = 10000L; // 10s

    private Integer maxConnectionTotal = 30; // 30

    private Integer maxIdleTime = 180; // 180s

}
